//
//  CollectContentViewController.m
//  FruitsAndHealthy
//
//  Created by appying_wxj on 14/11/24.
//  Copyright (c) 2014年 appying_wxj. All rights reserved.
//

#import "CollectContentViewController.h"

@interface CollectContentViewController ()

@end

@implementation CollectContentViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.titleLab.text = self.fruitsName;// 导航条上面的标题
    [self.leftButton addTarget:self action:@selector(collectBackButtonClick:) forControlEvents:UIControlEventTouchUpInside];
    
    
    
    NSString *str = self.fruitsContent;//获取更新的内容
    
    //    NSLog(@"------------------获取到得内容-----------------%@",str);
    UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectMake(5, 64, kScreen_Width-10, kScreen_Height-64)];
    [webView loadHTMLString:str baseURL:nil];
    webView.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:webView];

}
-(void)collectBackButtonClick:(UIButton *)sender{
    [self dismissViewControllerAnimated:YES completion:nil];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
